package com.itheima.多态.多态的转型;

public class Fu {
    public void eat(){
        System.out.println("父类吃饭");
    }

}

class Zi extends Fu{
    public void eat(){
        System.out.println("子类吃饭");
    }

    public void play(){
        System.out.println("玩游戏");
    }
}